<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'one.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <h2>请填写联系方式</h2>
    <form action="StuUserController/addStudent.do">
	    <table>
	    	<c:forEach items="${allStudent }" var="as">
				<tr>
					<td>联系人:</td>
					<td>
						<input type="text" name="paName" value="${as.paName }">
						<input type="hidden" name="userId" value="${as.userId }">
					</td>
				</tr>
				<tr>
					<td>电话:</td>
					<td><input type="text" name="stuPhone" value="${as.stuPhone}"></td>
				</tr>
			</c:forEach>
	    	<tr>
	    		<td>地区:</td>
	    		<td>
	    			<select name="adder.addId">
						<option>请选择</option>
						<c:forEach items="${allAdder }" var="a">
							<option value="${a.addId }">${a.addName }</option>
						</c:forEach>
					</select>
				</td>
	    	</tr>
	    	<tr>
	    		<td>地区详细描述:</td>
	    		<td><input type="text" name="addDateailed" value=""></td>
	    	</tr>
	    </table>
	    <h2>填写学员基本信息</h2>
	   	<table>
	   		<tr>
	    		<td>性别:</td>
	    		<td>
	    			<input type="radio" name="stuSex" value="男" checked="checked">男
	    			<input type="radio" name="stuSex" value="女">女
	    		</td>
	    	</tr>
	   		<tr>
	    		<td>学员年级:</td>
	    		<td>
	    			<select name="grade.gradeId">
						<option>请选择</option>
						<c:forEach items="${allGrade }" var="g">
							<option value="${g.gradeId }">${g.gradeName }</option>
						</c:forEach>
					</select>
	    		</td>
	    	</tr>
	    	<tr>
	    		<td>补习科目:</td>
	    		<td>
	    			<select name="classe.classId">
						<option>请选择</option>
						<c:forEach items="${allClasse}" var="c">
							<option value="${c.classId}">${c.className}</option>
						</c:forEach>
					</select>
	    		</td>
	    	</tr>
	    	<tr>
	    		<td>接受补课时间:</td>
	    		<td>
	    			<input type="date" name="stuClasstime" value="">
	    			<!-- <fmt:formatDate value='${stuClasstime }' pattern="yyyy-MM-dd"/> -->
	    		</td>
	    	</tr>
	    	<tr>
	    		<td>学员情况描述:</td>
	    		<td>
	    			<textarea rows="5" cols="15" name="stuIntroduce"></textarea>
	    		</td>
	    	</tr>
	   	</table>
	   	<h2>填写对教员的要求</h2>
	   	<table>
	   		<tr>
	   			<td>教员性别:</td>
	    		<td>
	    			<input type="radio" name="sex1" value="男">男
	    			<input type="radio" name="sex1" value="女">女
	    			<input type="radio" name="sex1" value="" checked="checked">均可
	    		</td>
	   		</tr>
	   		<tr>
	    		<td>对教员的其他要求:</td>
	    		<td>
	    			<textarea rows="5" cols="15" name="stuTask"></textarea>
	    		</td>
	    	</tr>
	    	<tr>
	    		<td>执教方式:</td>
	    		<td>
	    			<select name = "model.modelId">
    				<option>请选择</option>
						<c:forEach items="${allModel }" var="l">
							<option value="${l.modelId }">${l.modelName }</option>
						</c:forEach>
					</select>
				</td>
	    	</tr>
	    	<tr>
	    		<td colspan="2">
	    			<input type="submit" value="提交">
	    			<input type="button" value="重置">
	    		</td>
	    	</tr>
	   	</table>
	</form>
  </body>
</html>
